package com.zego.wawaji.base.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONObject;

/**
 * 升级描述信息
 * Created by Su on 2017/12/4.
 */
public class UpExplain extends BaseData implements Parcelable{
    private String remark;

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);
        this.remark = jsonObject.optString("Remark");
    }

    public String getRemark() {
        return remark;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.remark);
    }

    public UpExplain() {
    }

    protected UpExplain(Parcel in) {
        this.remark = in.readString();
    }

    public static final Creator<UpExplain> CREATOR = new Creator<UpExplain>() {
        @Override
        public UpExplain createFromParcel(Parcel source) {
            return new UpExplain(source);
        }

        @Override
        public UpExplain[] newArray(int size) {
            return new UpExplain[size];
        }
    };
}
